package com.jcp.entity;

/**
 * 员工考勤表
 * 
 * @author 朱徐烽
 *
 */
public class Attences {

	private int attId;
	private int userId;
	private String attTime;// 打卡时间
	private int attFlag;// 迟到早退加班标记：0：正常；1：迟到；2：早退；3：加班
	private double overTime;// 加班时长

	public int getAttId() {
		return attId;
	}

	public void setAttId(int attId) {
		this.attId = attId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getAttTime() {
		return attTime;
	}

	public void setAttTime(String attTime) {
		this.attTime = attTime;
	}

	public int getAttFlag() {
		return attFlag;
	}

	public void setAttFlag(int attFlag) {
		this.attFlag = attFlag;
	}

	public double getOverTime() {
		return overTime;
	}

	public void setOverTime(double overTime) {
		this.overTime = overTime;
	}

	@Override
	public String toString() {
		return "Attences [attId=" + attId + ", userId=" + userId + ", attTime=" + attTime + ", attFlag=" + attFlag
				+ ", overTime=" + overTime + "]";
	}

	public Attences(int attId, int userId, String attTime, int attFlag, double overTime) {
		super();
		this.attId = attId;
		this.userId = userId;
		this.attTime = attTime;
		this.attFlag = attFlag;
		this.overTime = overTime;
	}

	// 戴布斯：不带attId的构造方法，插入打卡记录用
	public Attences(int userId, String attTime, int attFlag, double overTime) {
		super();
		this.userId = userId;
		this.attTime = attTime;
		this.attFlag = attFlag;
		this.overTime = overTime;
	}

	// 戴布斯：不带attId和attTime的构造方法，插入打卡记录用
	public Attences(int userId, int attFlag, double overTime) {
		super();
		this.userId = userId;
		this.attFlag = attFlag;
		this.overTime = overTime;
	}

	public Attences() {
		// TODO Auto-generated constructor stub
	}
}
